package com.qili.entity.exam;

import com.alibaba.fastjson.JSONObject;
import lombok.Data;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 * @author zhangxiaopeng
 * @date 2021-05-07
 * 试卷
 */
@Table(name = "ex_paper")
@Data
@ToString
public class ExPaper {

    @Id
    @Column(name="paper_id")
    private String paperId;
    //试卷名
    @Column(name="paper_name")
    private String paperName;
    //试卷类型//001固定002随机
    @Column(name="paper_type")
    private String paperType;
    //试卷分类//
    @Column(name="paper_sort")
    private String paperSort;
    //答题时长
    @Column(name="total_time")
    private String totalTime;

    /**
     * 组题方式1添加固定试题2 随机试题
     */
    @Column(name="zj_type")
    private String zjType;

    /**
     * 状态 保存001 提交002 删除003
     */
    @Column(name="status")
    private String status;

    /**
     * 还原时的类型，002还原为提交状态
     */
    @Column(name="reduction_type")
    private String reductionType;

    //总分
    @Column(name="total_score")
    private String totalScore;
    //总题数
    @Column(name="total_num")
    private String totalNum;
    //创建人
    @Column(name="create_by")
    private String createBy;
    //创建时间
    @Column(name="create_date")
    private String createDate;
    //修改人
    @Column(name="modify_by")
    private String modifyBy;
    //修改时间
    @Column(name="modify_date")
    private String modifyDate;

    @Transient
    private List<JSONObject> paperDetails;
}
